<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>{l('Block Manage','block')}</h1>
	<div class="buttons">
	<a href="{url admin.php?m=block&f=index}" class="fr">{l('All Block','block')}</a>
	<a href="{url admin.php?m=block&f=add}" class="fr current">{l('Add Block','block')}</a>
	</div>
	</div>
	<div class="main">
	<form name="save" method="post" action="?m=block&f=add"  enctype="multipart/form-data">
	<input type="hidden" name="blksubmit" value="true" />
	<input type="hidden" name="id" value="{$id}" />
	{if $_G['gourl']}<input type="hidden" name="destination" value="{$_G['gourl']}" />{/if}
	<table width="100%" cellspacing="0" class="tb">
		<tr>
			<td colspan="2"><div id="tip"></div></td>
		</tr>
		<tr>
			<td  width="150"  align="right">{l('Title','block')}({l('Required','block')})：</td>
			<td><input type="text" name="block[name]" value="{$block['name']}" class="input" size="50" /> <span></span></td>
		</tr>
		<tr>
			<td  width="150"  align="right">{l('Module','block')}：</td>
			<td><select  name="block[module]"><option {if !$block['module']}selected=""{/if} value="other">请选择模块</option><option {if $block['module']=='article'}selected=""{/if} value="article">文章</option><option {if $block['module']=='product'}selected=""{/if} value="product">产品</option><option {if $block['module']=='order'}selected=""{/if} value="order">订单</option><option {if $block['module']=='shop'}selected=""{/if} value="shop">商家</option><option {if $block['module']=='user'}selected=""{/if} value="user">用户</option><option {if $block['module']=='comment'}selected=""{/if} value="comment">评论</option><option {if $block['module']=='other'}selected=""{/if} value="other">其它</option></select> <span></span></td>
		</tr>
		<tr>
			<td  width="150"  align="right">{l('Max Num','block')}：</td>
			<td><input type="text" name="block[maxnum]" value="{$block['maxnum']}" class="input" size="5" /> <span> 条</span></td>
		</tr>
		<tr>
			<td  width="150"  align="right">显示顺序：</td>
			<td><input type="text" name="block[listorder]" value="{$block['listorder']}" class="input" size="5" /> <span> </span></td>
		</tr>
		<tr>
			<td  width="150"  align="right">模板：</td>
			<td><textarea rows="3" cols="48"  name="block[template]" >{$block['template']}</textarea> <span> </span></td>
		</tr>
		
		<tr class="bg2"><td></td><td><input type="submit" class="button" value="{l('Submit','block')}" />&nbsp; <input type="button" onclick="history.back()" value="返回上一页" class="button"></td></tr>
	</table>
	</form>
	</div>
</div>
{admintemplate footer}